package com.ktgj.customer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 订单商品对象 mall_order_product
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
public class MallOrderProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long orderProductId;

    /** 订单主键 */
    @Excel(name = "订单主键", readConverterExp = "$column.readConverterExp()")
    private Long orderId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long productId;

    /** 规格编号 */
    @Excel(name = "规格编号")
    private Long productSpecId;

    /** 商品数 */
    @Excel(name = "商品数")
    private Long number;

    /** $column.columnComment */
    @Excel(name = "商品数")
    private BigDecimal couponPrice;

    /** $column.columnComment */
    @Excel(name = "商品数")
    private BigDecimal equityPrice;

    /** 0 普通订单  10团单  20秒杀单 30商品组合单 40权益兑换 */
    @Excel(name = "0 普通订单  10团单  20秒杀单 30商品组合单 40权益兑换")
    private Long typeId;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal salePrice;

    /** 原价 成本价 */
    @Excel(name = "原价 成本价")
    private BigDecimal originalPrice;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /**
     * 快递单号
     */
    private String expressNo;

    public String getExpressNo()
    {
        return expressNo;
    }

    public void setExpressNo(String expressNo)
    {
        this.expressNo = expressNo;
    }

    public void setOrderProductId(Long orderProductId)
    {
        this.orderProductId = orderProductId;
    }

    public Long getOrderProductId() 
    {
        return orderProductId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductSpecId(Long productSpecId) 
    {
        this.productSpecId = productSpecId;
    }

    public Long getProductSpecId() 
    {
        return productSpecId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setCouponPrice(BigDecimal couponPrice) 
    {
        this.couponPrice = couponPrice;
    }

    public BigDecimal getCouponPrice() 
    {
        return couponPrice;
    }
    public void setEquityPrice(BigDecimal equityPrice) 
    {
        this.equityPrice = equityPrice;
    }

    public BigDecimal getEquityPrice() 
    {
        return equityPrice;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderProductId", getOrderProductId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productSpecId", getProductSpecId())
            .append("number", getNumber())
            .append("couponPrice", getCouponPrice())
            .append("equityPrice", getEquityPrice())
            .append("typeId", getTypeId())
            .append("salePrice", getSalePrice())
            .append("originalPrice", getOriginalPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
